package groovyuno.test

import groovyuno.UNO

class Test {
	def static main(args) {
		//UNOExpander.expand()
		UNO.init()

		//		println "${UNO.desktop.uno(XInterface)}"
		//
		//		println UNO.desktop.class.interfaces
		//
		//		XTextDocument comp = UNO.desktop.getCurrentComponent().uno(XTextDocument)
		//
		//		println comp.getUnoProperties().Name
		//		println UNO.desktop.getCurrentComponent()
		//		println UNO.desktop.getCurrentComponent().TwoDigitYear
		//
		//		println UNO.desktop.isProxy()
		//		println 123.isProxy()
		//
		//		println UNO.desktop.isActive()


		def doc = UNO.desktop.currentComponent
		def text = doc.getText()
		def start = text.getStart()
		text.insertString(start, "Hello World!", false)

		def cursor = text.createTextCursor()

		cursor.gotoStart(false)
		cursor.gotoEnd(true)
		cursor.CharFontName = "Arial"

		//UNO.desktop.terminate()
	}
}
